//
//  BKOrderChooseCouponsHFView.m
//  bestkeep
//
//  Created by yons on 16/11/21.
//  Copyright © 2016年 utouu. All rights reserved.
//

#import "BKOrderChooseCouponsHFView.h"
#import "BK_OD_Color.h"
#import "BK_OD_Tool.h"
/**
    基类
 */
@implementation BKOrderChooseCouponsHFView
- (void)fillData:(id)data{
    
}

+ (CGFloat)computeHeight:(id)data{
    return 0;
}

@end

/**
    提示语 header view
 */

@implementation BKOrderCCHeaderView
{
    UILabel *_message;
}

- (instancetype)initWithReuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithReuseIdentifier:reuseIdentifier];
    if (self) {
        [self initialize];
    }
    return self;
}

- (void) initialize
{
    _message = [[UILabel alloc] init];
    _message.backgroundColor = [UIColor clearColor];
    _message.textColor = kOrderLightGrey1;
    _message.font = UIFontCustom(12);
    [self.contentView addSubview:_message];
    
    [self makeConstraints];
}

- (void)makeConstraints
{
    [_message mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(self.contentView).offset(40);
        make.centerY.mas_equalTo(self.contentView);
    }];
}

- (void)fillData:(id)data{
    _message.text = data;
}

+ (CGFloat)computeHeight:(id)data{
    CGSize textSize = [@"算高度" sizeWithAttributes:@{NSFontAttributeName : UIFontCustom(12)}];
    return textSize.height + 30;
}

@end
